package com.mynotes.notes;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.ImageView;

public class ImgShow extends Activity {
	private ImageView showImg;
	private String imgPath;
	private int imgId;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.imgshow);

		// imgPath=getIntent().getStringExtra("imgPath");
		imgId = getIntent().getIntExtra("imgPath", -1);
		showImg = (ImageView) findViewById(R.id.imgshow);
		if (imgId != -1) {
			showImg.setImageResource(imgId);
		}

		showImg.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(getApplicationContext(),
						Me_Myweilaixin_show.class);
				startActivity(intent);
				finish();

			}
		});

	}
}
